package basis.game.fx;

import basis.game.level.Light;
import java.awt.Shape;

public abstract class Fx implements Light{

    protected double x,y,w,h,lower_bound,upper_bound;
    protected int color,radius,brightness;
    protected boolean show=true;
    
    protected Fx(double x,double y,double w,double h,double lb,double ub,int r,int b,int color){
        this.x=x;this.y=y;this.w=w;this.h=h;radius=r;this.color=color;this.brightness=b;
        lower_bound=lb;upper_bound=ub;
    }
    
    @Override
    public int getRadius(){
        return radius;
    }
    
    @Override
    public int getBrightness(){
        return brightness;
    }
    
    @Override
    public double getLowerBound(){
        return lower_bound;
    }
    
    @Override
    public double getUpperBound(){
        return upper_bound;
    }
    
    @Override
    public int getColor(){
        return color;
    }
    
    @Override
    public void setColor(int color){
        this.color=color;
    }
    
    @Override
    public void setX(double x) {
        this.x=x;
    }

    @Override
    public void setY(double y) {
        this.y=y;
    }

    @Override
    public void show(boolean s) {
        show=s;
    }

    @Override
    public void move(double x, double y) {
        this.x+=x;
        this.y+=y;
    }

    @Override
    public double getX() {
        return x;
    }

    @Override
    public double getY() {
        return y;
    }

    @Override
    public boolean isShown() {
        return show;
    }

    @Override
    public Shape getBounds() {
        return null;
    }
    
}